<!-- $Id: goods_list.htm 17126 2010-04-23 10:30:26Z liuhui $ -->

{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js,jquery.js"}



<!-- 优惠卷搜索 -->
<!-- $Id: goods_search.htm 16790 2009-11-10 08:56:15Z wangleisvn $ -->
<div class="form-div">
  <form action="javascript:searchGoods()" name="searchForm">
    <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
    发放时间
    <input type="date" name="start_time">————
    <input type="date" name="end_time">
    优惠卷名称
    <input type="text" name="coupon_name">
    <input type="submit" value="{$lang.button_search}" class="button" />
  </form>
</div>

{literal}
<script language="JavaScript">
    function searchGoods()
    {

        listTable.filter['order_sn'] = Utils.trim(document.forms['searchForm'].elements['order_sn'].value);
        listTable.filter['service_type'] = Utils.trim(document.forms['searchForm'].elements['service_type'].value);
        listTable.filter['service_state'] = Utils.trim(document.forms['searchForm'].elements['service_state'].value);
        listTable.filter['handle_state'] = Utils.trim(document.forms['searchForm'].elements['handle_state'].value);
        listTable.filter['page'] = 1;

        listTable.loadList();
      
    }
</script>
{/literal}
<!-- 优惠卷列表 -->
<form method="post" action="" name="listForm" onsubmit="return confirmSubmit(this)">
  <!-- start goods list -->
  <div class="list-div" id="listDiv">
{/if}
<table cellpadding="3" cellspacing="1">
  <tr>
    <th>优惠卷编号</th>
    <th>优惠卷名称</th>
    <th>优惠卷类型</th>
    <th>开始领取时间</th>
    <th>结束领取时间</th>
    <th>开始时间</th>
    <th>结束时间</th>
    <th>发放时间</th>
    <th>发放数量</th>
    <th>领取数量</th>
    <th>使用数量</th>
  <th>操作</th>
  </tr>
  {foreach from=$coupon_list item=coupon}
  <tr>
    <td align="center">{$coupon.coupon_code}</td>
    <td align="center">{$coupon.coupon_name}</td>
    <td align="center">{$coupon.type_name}</td>
    <td align="center">{$coupon.get_start_time}</td>
    <td align="center">{$coupon.get_end_time}</td>
    <td align="center">{$coupon.start_time}</td>
    <td align="center">{$coupon.end_time}</td>
    <td align="center">{$coupon.add_time}</td>
    <td align="center">
    <span onclick="listTable.edit(this, 'edit_out_number', '{$coupon.coupon_code}')" title="点击修改内容">{$coupon.out_number}</span>
    </td>
    <td align="center">{$coupon.get_number}</td>
    <td align="center">{$coupon.use_number}</td>
    <td align="center">
      <a href="coupon.php?act=info&coupon_code={$coupon.coupon_code}">查看</a>
      <a href="javascript:;" onclick="listTable.delete(this,'{$coupon.coupon_code}','你确定要删除这个优惠卷');" title="{$lang.remove}">{$lang.remove}</a>
    </td>
  </tr>
  {foreachelse}
  <tr><td class="no-records" colspan="10">{$lang.no_records}</td></tr>
  {/foreach}
</table>
<!-- end goods list -->

<!-- 分页 -->
<table id="page-table" cellspacing="0">
  <tr>
    <td align="right" nowrap="true">
    {include file="page.htm"}
    </td>
  </tr>
</table>


</div>


</form>

<script type="text/javascript">
  listTable.recordCount = {$record_count};
  listTable.pageCount = {$page_count};
  listTable.query = "query";
  {foreach from=$filter item=item key=key}
  listTable.filter.{$key} = '{$item}';
  {/foreach}
</script>

